from selenium import webdriver
from selenium.webdriver.common.by import By
import time
chrome = webdriver.Chrome()
print('hahah')
chrome.get('https://www.baidu.com')
chrome.find_element(by=By.ID, value='kw').send_keys('pytho')
x = chrome.find_element(by=By.LINK_TEXT, value='kw')
# 鼠标移动到某个地方
webdriver.ActionChains.move_to_element(x).perform()
time.sleep(2)
chrome.find_element(by=By.ID, value='su').click()
time.sleep(2)
chrome.quit()